import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
    //关于三秋
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
    //业务邻域
  {
    path: '/businessArea',
    name: 'BusinessArea',
    component: () => import(/* webpackChunkName: "about" */ '../views/BusinessArea.vue')
  },
    //专业团队
  {
    path: '/expertTeam',
    name: 'ExpertTeam',
    component: () => import(/* webpackChunkName: "about" */ '../views/ExpertTeam.vue')
  },
  //新闻中心
  {
    path: '/newsCenter',
    name: 'NewsCenter',
    component: () => import(/* webpackChunkName: "about" */ '../views/NewsCenter.vue')
  },
  //法律著作
  {
    path: '/legalWorks',
    name: 'LegalWorks',
    component: () => import(/* webpackChunkName: "about" */ '../views/LegalWorks.vue')
  },
  //法律著作详情
  {
    path: '/allDetails',
    name: 'AllDetails',
    component: () => import(/* webpackChunkName: "about" */ '../views/AllDetails.vue')
  },


  //经典案例
  {
    path: '/classicCases',
    name: 'ClassicCases',
    component: () => import(/* webpackChunkName: "about" */ '../views/ClassicCases.vue')
  },

  //招贤纳士
  {
    path: '/recruitment',
    name: 'Recruitment',
    component: () => import(/* webpackChunkName: "about" */ '../views/Recruitment.vue')
  },
  //联系我们
  {
    path: '/contactUs',
    name: 'ContactUs',
    component: () => import(/* webpackChunkName: "about" */ '../views/ContactUs.vue')
  },
  //搜索结果
  {
    path: '/searchResult',
    name: 'SearchResult',
    component: () => import(/* webpackChunkName: "about" */ '../views/SearchResult.vue')
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
